package com.woniuxy.educationplatform.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@JsonIgnoreProperties(value = "handler")
public class LiveBean implements Serializable {
    private Long id;
    private String liveName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //返回时间类型
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型
    private Date createTime;
    /**
     * 0:所有状态
     * 1：未开始
     * 2：正在直播
     * 3：已结束
     */
    private Long status;
    /**
     * 0:所有
     * 1：单场直播
     * 2：直播课程
     */
    private Long ltype;

    private String teacherName;
}
